import lab3.*;


public class Main
{
	public static void lab3 (String [] args)
	{
		//Digest Interface is a singelton. get a reference
		DigestInterface di = DigestInterface.getInstance();
		//before starting di it needs the files that need to be worked on
		di.setFiles(args);
		//create the thread to host the runnable object.
		Thread t = new Thread(di);
		//then start it. di will create all the sub threads and return when the 
		//last of them finish (joined)
		t.start();
	}

	public static void lab4 (String [] args)
	{
		//Digest Interface is a singelton. get a reference
		DigestInterface di = DigestInterface.getInstance();
		//before starting di it needs the files that need to be worked on
		di.setFiles(args, args.length);
		//create the thread to host the runnable object.
		Thread t = new Thread(di);
		//then start it. di will create all the sub threads and return when the 
		//last of them finish (joined)
		t.start();
	}
	/**
	 *once again run with paths as command line args
	 */
	public static void main(String[] args)
	{
		//Main.lab3(args);
		Main.lab4(args);
	}

}
